package slxy.jiangtao.dts.entity.sys;

import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;

/**
 * Code must be sexy
 * Created by Jiang Tao on 2017/3/31.
 */
@Entity
@DynamicInsert
@Table(name = "system_files")
public class SystemFiles {
    @Id
    @Column(name = "no",nullable = false)
    private String no;

    @Column(name = "name",nullable = false)
    private String name;

    @Column(name = "type")
    private String type;

    @Column(name = "suffix")
    private String suffix;

    @Column(name = "size")
    private long size;

    @Column(name = "oper_time")
    private String operTime;

    @Column(name = "status")
    private String status;

    @Column(name = "path")
    private String path;

    @Basic
    @Column(name = "local_path")
    private String localPath;

    @Column(name = "oper_name")
    private String operName;
    public SystemFiles() {
    }

    public SystemFiles(String no, String name, String type, String path, String operTime) {
        this.no = no;
        this.name = name;
        this.path = path;
        this.type = type;
        this.operTime = operTime;
    }

    public SystemFiles(String no, String name, String type, String path, String localPath, String operTime, String operName) {
        this.no = no;
        this.name = name;
        this.path = name;
        this.type = type;
        this.operTime = operTime;
        this.operName = operName;
        this.localPath = localPath;
    }




    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }



    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }


    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }


    public long getSize() {
        return size;
    }

    public void setSize(long size) {
        this.size = size;
    }


    public String getOperTime() {
        return operTime;
    }

    public void setOperTime(String operTime) {
        this.operTime = operTime;
    }


    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }


    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }


    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }


    public String getOperName() {
        return operName;
    }

    public void setOperName(String operName) {
        this.operName = operName;
    }
}
